﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Data.Linq.Mapping;

namespace DentistApplication
{
    public class Person
    {
        public string name { get; set; }
        public string lastname { get; set; }
        public string pesel { get; set; }

        public bool IsEmailValid(string Email)
        {
            Regex re = new Regex(@"\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}\b");
            return re.IsMatch(Email);
        }
    }
}
